package com.xjscrm.server.req.filterrule;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Objects;

/**
 * 当日用户排除规则请求
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomerTimeExcludeFilterReq extends CustomerFilterRuleReq{

    /**
     * 是否排除
     */
    private Integer flag;

    /**
     * 用户创建时间
     */
    private Integer createTime;

    private String excludeCustomerCreateDayStart;

    private String excludeCustomerCreateDayEnd;

    private Integer openExclude;

    public Boolean isOpenExclude() {
        return Objects.equals(this.getOpenExclude(), 1);
    }

}
